
using UnityEngine;

public class InputManager : MonoBehaviour
{
    public static InputManager Instance { get; private set; }

    private InputAction inputAction;




    private void Awake()
    {
        //简单创建单例
        if (Instance != null)
        {
            Debug.LogError("有两个Instance");
        }
        Instance = this;

        //获取/创建InputSystem
        inputAction = new InputAction();
    }
    private void Start()
    {
        inputAction.Player.Enable();
        //inputAction.Player.Jump.
    }

    private void OnDestroy()
    {
        inputAction.Dispose();
    }
}
